package locations.actions;

import locations.model.TipoProblematica;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class NewProblematicTypeAction extends ActionSupport implements ModelDriven<TipoProblematica> 
{
    private static final long serialVersionUID = -8124967730231198191L;
    private TipoProblematica problematicType = new TipoProblematica();
    private String pageTitle = "Editar tipo de problematica";

    public String execute()
    {
        return SUCCESS;
    }

    public TipoProblematica getProblematicType()
    {
        return problematicType;
    }

    public void setProblematicType(TipoProblematica problematic)
    {
        this.problematicType = problematic;
    }

    @Override
    public TipoProblematica getModel()
    {
        return this.problematicType;
    }
}